<?php

namespace App\Http\Controllers\Wap;
use App\Models\CouponRecord;

class ConfigsController extends Controller
{
	public function aboutUs()
	{
		return view('wap.configs.about-us');
	}
	
	public function userAgreement()
	{
		return view('wap.configs.user-agreement');
	}
	
	public function userPrivacy()
	{
		return view('wap.configs.user-privacy');
	}
	
	public function userService()
	{
		return view('wap.configs.user-service');
	}
	
	public function userUsage()
	{
		return view('wap.configs.user-usage');
	}

	public function parking()
	{
		$record = CouponRecord::find(request('record_id'));
		if($record->status =='used' || strtotime($record->expired_at) < time() ){
			echo '该优惠券已过期或已使用';
		}else{

			return view('wap.configs.parking');
		}

		
	}

	public function parkingThis()
	{
		

		return view('wap.configs.parking1');
		

		
	}
}
